//
//  UIButton+WLContentExtention.h
//  WLForm
//
//  Created by 刘光强 on 2018/5/4.
//  Copyright © 2018年 quangqiang. All rights reserved.
//

#import <UIKit/UIKit.h>

// 定义一个枚举（包含了四种类型的button）
typedef NS_ENUM(NSUInteger, MKButtonEdgeInsetsStyle) {
    MKButtonEdgeInsetsStyleTop,     // image在上，label在下
    MKButtonEdgeInsetsStyleLeft,    // image在左，label在右
    MKButtonEdgeInsetsStyleBottom,  // image在下，label在上
    MKButtonEdgeInsetsStyleRight    // image在右，label在左
};

@interface UIButton (MLXContentExtention)

/**
 * 设置button的titleLabel和imageView的布局样式，及间距
 *
 * @param style titleLabel和imageView的布局样式
 * @param space titleLabel和imageView的间距
 */
- (void)layoutButtonWithEdgeInsetsStyle:(MKButtonEdgeInsetsStyle)style
                        imageTitleSpace:(CGFloat)space;

@end
